// 设置服务器地址
// export const BASE_URL = 'http://127.0.0.1:3001'
export const BASE_URL = process.env.VUE_APP_API_URL


/**
 * 用于清除对象中为空的键值对
 * @param {*} obj 
 */
export const clearObject = (obj) => {
    for (let key in obj) {
        if (obj[key] === '' || obj[key] === null) {
            delete obj[key]
        }
    }

}